package com.yan.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ControllerModeTest1 {
    //转发
//    @RequestMapping("/abc")
//    public String req(){
//           return "WEB-INF/jsp/text.jsp";
//    }


    //转发二
    @RequestMapping("/abcd")
    public String req1(){
        return "forward:WEB-INF/jsp/text.jsp";
    }


    //重定向
    @RequestMapping("/aba")
    public String req2(){
        return "redirect:/index.jsp";
    }
}
